#include "about.h"
#include "ui_about.h"

about::about(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::about)
{
    ui->setupUi(this);
    setWindowFlags(Qt::FramelessWindowHint);
    setAttribute(Qt::WA_TranslucentBackground);
    qDebug()<<"aaaa";
    QMovie *movie = new QMovie(":/pic/about.gif");
    ui->label->setMovie(movie);
    movie->start();
    setAttribute(Qt::WA_ShowModal, true);
}

about::~about()
{
    delete ui;
}

void about::paintEvent(QPaintEvent *){
    QPainter p(this);
    p.drawPixmap(0, 0 , QPixmap(":/pic/load.png"));
}

void about::mousePressEvent(QMouseEvent *){
    accept();
}
